{% load comments i18n %}
<form action="{% comment_form_target %}" method="post">{% csrf_token %}
  {% if next %}<div><input type="hidden" name="next" value="{{ next }}" /></div>{% endif %}
  <div id="comment_fields">
  {% for field in form %}
    {% if field.is_hidden %}
      <div>{{ field }}</div>    
    {% else %}
      {% if field.errors %}{{ field.errors }}{% endif %}
      
      {% if  request.user.is_authenticated %}
            <p
            {% if field.errors %} class="error"{% endif %}
            {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}
            {% ifequal field.name "url" %} style="display:none;"{% endifequal %} 
            {% ifequal field.name "name" %} style="display:none;"{% endifequal %} 
            {% ifequal field.name "email" %} style="display:none;"{% endifequal %} 
            {% ifequal field.name "comment" %} style="font-size :15px;"{% endifequal %}      
           >
     {%else%}
          <p
            {% if field.errors %} class="error"{% endif %}
            {% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}
           {% ifequal field.name "url" %} style="display:none;"{% endifequal %} 
           {% ifequal field.name "comment" %} style="font-size :15px;"{% endifequal %}      
           >
    {%endif %}
     
    {% ifequal field.name "comment" %} 
                    {{ field }}
    {%else %}
            {{ field.label_tag }} {{ field }}
    {% endifequal %}
    
      </p>
    {% endif %}
  {% endfor %}
  </div>
  <p class="submit">
    <input type="submit" style="padding:10px ; width:100%;" name="post" class="submit-post" value="{% trans 'Post' %}" />
<!--   <input type="submit" name="preview" class="submit-preview" value="{% trans 'Preview' %}" /> -->
  </p>
</form>
